<?php


namespace app\common\model;

use think\Db;
use think\Model;

class Vip extends Model
{

    // 详细信息
    public function info()
    {
        $data = model("vip")->field('id,title,price,day,content')->select();
        foreach($data as $key => $val)
        {
            $data[$key]['day'] = round($val['day'] / 30,1); // 获取月份
        }
        return $data;
    }


}